package com.sline.Enum;

public class Week {
    private Week() {}

    public static final  Week MON = new Week();
    public static final  Week TUE = new Week();
    public static final  Week WEN = new Week();
    public static final  Week THU = new Week();
    public static final  Week FRI = new Week();
    public static final  Week SAT = new Week();
    public static final  Week SUN = new Week();
}

class Week2 {

    public static final  Week2 MON = new Week2("星期一");
    public static final  Week2 TUE = new Week2("星期二");
    public static final  Week2 WEN = new Week2("星期三");
    public static final  Week2 THU = new Week2("星期四");
    public static final  Week2 FRI = new Week2("星期五");
    public static final  Week2 SAT = new Week2("星期六");
    public static final  Week2 SUN = new Week2("星期日");

    private String name;

    private Week2(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}

abstract class Week3 {

    public static final  Week3 MON = new Week3("星期一") {
        public void show() {
            System.out.println("星期一");
        }
    };
    public static final  Week3 TUE = new Week3("星期二") {
        public void show() {
            System.out.println("星期二");
        }
    };
    public static final  Week3 WEN = new Week3("星期三") {
        public void show() {
            System.out.println("星期三");
        }
    };
    public static final  Week3 THU = new Week3("星期四") {
        public void show() {
            System.out.println("星期四");
        }
    };
    public static final  Week3 FRI = new Week3("星期五") {
        public void show() {
            System.out.println("星期五");
        }
    };
    public static final  Week3 SAT = new Week3("星期六") {
        public void show() {
            System.out.println("星期六");
        }
    };
    public static final  Week3 SUN = new Week3("星期日") {
        public void show() {
            System.out.println("星期日");
        }
    };

    private String name;

    private Week3(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public abstract void show();
}